extends CanvasLayer

@export var experience_manager: ExperienceManager
@onready var prograss_bar = $MarginContainer/ProgressBar

func _ready() -> void:
	prograss_bar.value = 0
	experience_manager.experience_updated.connect(on_experience_update)

func on_experience_update(current_experience:float, target_experience:float):
	var percent = current_experience / target_experience
	prograss_bar.value = percent
